<?php


use Biz\model\store\StoreOtherStoresModel;
use Biz\service\Store\StoreBasicService;

/**
 * Description: 分类信息
 * Created by IntelliJ IDEA.
 * User: 玉坤
 * Date: 2021/7/29
 * Time: 13:58
 */
class BasicOtherInfoAction extends ActionPlugin
{
    public const USER_LEVEL = self::LEVEL_NOTHING;

    public function main()
    {
        $store_id = $this->getRequest()->getPost('store_id', 0);
        if (!$store_id) {
            throw new Exception('非法传参');
        }
        $data['info'] = StoreBasicService::getOneStoreInfo($store_id);
        $data['list'] = StoreOtherStoresModel::getList($store_id);
        $this->setSuccess($data);
    }
}